home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / Libsprintf / Libsprintf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-15  |  612 b   |  43 lines  |  [TEXT/SPM ]

  1. /*
  2.     Libsprintf.h
  3.     
  4.     Header file for Libsprintf.c
  5.     
  6. */
  7.  
  8. #pragma once
  9.  
  10. // Uncomment the following to use the ANSI sprintf
  11. // #define _USE_ANSI_ 1
  12.  
  13. #ifndef __H_Libsprintf__
  14. #define __H_Libsprintf__
  15.  
  16. #ifdef _USE_ANSI_
  17.  
  18. #include <stdio.h>
  19. #include <string.h>
  20.  
  21. #else /* !_USE_ANSI_ */
  22.  
  23. // a replacement for ANSI's errno
  24. extern long s_errno;
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. int libsprintf(char *fp, const char *fmt,...);
  31. int libvsprintf(char *fp, const char *fmt,void*);
  32.  
  33. void libfixnl(char* buf);
  34. char libstrlen(char* buf);
  35.  
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39.  
  40. #endif /* _USE_ANSI_ */
  41.  
  42. #endif /* __H_Libsprintf__ */
  43.